import request, {postJson} from "@/apps/admin/utils/request";
// 获取所有时间段
export const getTimeSlots = () => {
    return request.get('/v1/admin/getTimeSlots')
}

// 创建一个时间段
export const createTimeSlot = (slot) => {
    return request.post('/v1/admin/createTimeSlot', slot)
}

// 删除一个时间段
export const deleteTimeSlot = (data) => {
    return postJson(`/v1/admin/deleteTimeSlot`, data)
}
